package com.insist.dao;

import com.insist.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Administrator on 2015/11/6.
 */
public interface UserInfoDao extends JpaRepository<UserInfo,Long> {

    UserInfo getByMobileAndPassword(String mobile, String password);
    UserInfo getByMobile(String mobile);

    UserInfo getByUsername(String username);
}
